/* Copyright (C) 2011 clueless <clueless.mmopeon@gmail.com>
 *
 * This file is part of MMO Peon.
 *
 * MMO Peon is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * MMO Peon is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with MMO Peon.  If not, see <http://www.gnu.org/licenses/>.
 */

#ifndef __MMOPEON_COORDS_H
#define __MMOPEON_COORDS_H

static const float pi = 3.1415926535;
float RadToDeg2(float rad);

class RomVectors
{
    public:
        float x;
        float z;
        float y;

        float Angle();
} __attribute__((packed));

class RomCoords
{
    public:
        float x;
        float z;
        float y;

        float Distance(const RomCoords &target) const;
        float Angle(const RomCoords &target) const;
} __attribute__((packed));
#endif
